﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace LinqToBing.Bing.Wrapper.Interfaces
{
    /// <summary>
    /// Interface for XDocument result export and management.
    /// </summary>
    interface ISearchXDocumentResult
    {
        /// <summary>
        /// Used to generate an XDocument about the query and results.
        /// </summary>
        XDocument XDocument { get; set; }

        /// <summary>
        /// The ability to import an XDocument to obtain a list of results.
        /// </summary>
        /// <param name="xdoc">The XDocument to import.</param>
        void ParseDocument(XDocument xdoc);
    }
}
